@SpringBootApplication(exclude = {JmxAutoConfiguration.class})
@EnableJpaRepositories(basePackages = "com.xy.repository")
@EntityScan(basePackages = "com.xy.repository.entity, com.xy.entity")
@RestController
@Configuration
@PropertySource("classpath:config.properties")
public class WritApplication {
    public static void main(String[] args) {
        SpringApplication.run(WritApplication.class, args);
    }

    @GetMapping("/health")
    public String healthCheck() {
        return "Application is running";
    }
}